import request from '@/utils/request'

/** 获取TOKEN */
declare interface GetTokenByTicketType<T = any> {
  ticket: string // [TICKET]
}
export const getTokenByTicket = (data: GetTokenByTicketType) =>
  request({ url: '/getTokenByTicket', data })

/** 退出登陆 */
export const logout = () => request({ url: '/logout' })

/** 获取用户信息 */
export const getUserInfo = () => request({ url: '/getUserInfo' })

/** 获取菜单 */
export const getMenuList = () => request({ url: '/searchMenuList' })
